<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="../../template/template.xhtml">
	<ui:define name="content">
		<h:form>
			<div class="FORM_HEADER">Educational Details</div>
			<h:inputHidden value="#{studentController.studentDTO.id}" />
			<h:panelGrid columns="3" styleClass="APPLICATION_CONTENT">
				<h:outputLabel value="School Name: " for="schoolName" />
				<h:inputText id="schoolName"
					value="#{studentController.studentDTO.schoolName}" size="55" />
				<h:message for="schoolName" errorClass="ERROR_MESSAGE" />

				<h:outputLabel value="Standard/Class: " for="standard" />
				<h:inputText id="standard"
					value="#{studentController.studentDTO.standard}" size="55" />
				<h:message for="standard" errorClass="ERROR_MESSAGE" />

				<h:outputLabel value="Education Medium: " for="medium" />
				<h:inputText id="medium"
					value="#{studentController.studentDTO.educationMedium}" size="55" />
				<h:message for="medium" errorClass="ERROR_MESSAGE" />
			</h:panelGrid>
			<h:panelGrid styleClass="APPLICATION_CONTENT">
				<div class="FORM_HEADER">Write more about you and your
					education if you want</div>
				<p:editor id="description"
					value="#{studentController.studentDTO.description}" />
				<h:message for="description" errorClass="ERROR_MESSAGE" />
				<p:commandButton value="Save"
					action="#{studentController.updatePersonalDetails}" />
			</h:panelGrid>
		</h:form>

	</ui:define>
</ui:composition>
</html>